import request from '@/utils/request'

// 查询文件分享列表
export function listShareFile(query) {
  return request({
    url: '/exam/shareFile/list',
    method: 'get',
    params: query
  })
}

// 查询文件分享详细
export function getShareFile(id) {
  return request({
    url: '/exam/shareFile/' + id,
    method: 'get'
  })
}

// 新增文件分享
export function addShareFile(data) {
  return request({
    url: '/exam/shareFile',
    method: 'post',
    data: data
  })
}

// 修改文件分享
export function updateShareFile(data) {
  return request({
    url: '/exam/shareFile',
    method: 'put',
    data: data
  })
}

// 删除文件分享
export function delShareFile(id) {
  return request({
    url: '/exam/shareFile/' + id,
    method: 'delete'
  })
}
